package com.lsy.on_line.zaixian.service;

import com.lsy.on_line.zaixian.model.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ShiYuan
 * @since 2022-07-24
 */
public interface IOrderService extends IService<Order> {

    /**
     * 下单
     * @param userId
     * @param videoId
     * @return
     */
    int save(int userId,int videoId);

    /**
     * 根据userId获取订单列表
     * @param userId
     * @return
     */
    List<Order> listOrderByUserId(Integer userId);
}
